home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / languages / ami_nuweb0.87c.lha / global.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-12  |  2.7 KB  |  101 lines

  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include <ctype.h>
  5. #ifdef _AMIGA
  6. #include <libraries/locale.h>
  7. #include <proto/locale.h>
  8. #include <proto/exec.h>
  9.  
  10. #define get_string(n) AppStrings[n].as_Str /* reference string n */
  11.  
  12. #include "catalogs/nuweb.h"
  13.  
  14. #ifndef STRINGARRAY
  15. struct AppString
  16. {
  17.   LONG   as_ID;
  18.   STRPTR as_Str;
  19. };
  20.  
  21. extern struct AppString AppStrings[];
  22. #endif
  23. #endif
  24. #ifdef _AMIGA
  25. #include <signal.h>
  26. #endif
  27.  
  28. #ifndef FALSE
  29. #define FALSE 0
  30. #endif
  31. #ifndef TRUE
  32. #define TRUE 1
  33. #endif
  34. typedef struct scrap_node {
  35.   struct scrap_node *next;
  36.   int scrap;
  37. } Scrap_Node;
  38. typedef struct name {
  39.   char *spelling;
  40.   struct name *llink;
  41.   struct name *rlink;
  42.   Scrap_Node *defs;
  43.   Scrap_Node *uses;
  44.   int mark;
  45.   char tab_flag;
  46.   char indent_flag;
  47.   char debug_flag;
  48. } Name;
  49.  
  50. extern int tex_flag;      /* if FALSE, don't emit the documentation file */
  51. extern int html_flag;     /* if TRUE, emit HTML instead of LaTeX scraps. */
  52. extern int output_flag;   /* if FALSE, don't emit the output files */
  53. extern int compare_flag;  /* if FALSE, overwrite without comparison */
  54. extern int verbose_flag;  /* if TRUE, write progress information */
  55. extern int number_flag;   /* if TRUE, use a sequential numbering scheme */
  56. extern char *command_name;
  57. extern char *source_name;  /* name of the current file */
  58. extern int source_line;    /* current line in the source file */
  59. extern int already_warned;
  60. extern Name *file_names;
  61. extern Name *macro_names;
  62. extern Name *user_names;
  63. extern struct Library *LocaleBase;
  64.   /* pointer to the locale library */
  65. extern struct Catalog *catalog;
  66.   /* pointer to the external catalog, when present */
  67. extern int i;
  68.   /* global counter for list of strings */
  69.  
  70. extern void pass1(char *);
  71. extern void write_tex(char *, char *);
  72. extern void write_html(char *, char *);
  73. extern void write_files(Name *);
  74. extern void source_open(char *);
  75.   /* pass in the name of the source file */
  76. extern int source_get(void);
  77.   /* no args; returns the next char or EOF */
  78. extern void init_scraps(void);
  79. extern int collect_scrap(void);
  80. extern int write_scraps(FILE *, Scrap_Node *, int, char *, char, char, char);
  81. extern void write_scrap_ref(FILE *, int, int, int *);
  82. extern void write_single_scrap_ref(FILE *, int);
  83. extern void collect_numbers(char *);
  84. extern Name *collect_file_name(void);
  85. extern Name *collect_macro_name(void);
  86. extern Name *collect_scrap_name(void);
  87. extern Name *name_add(Name **, char *);
  88. extern Name *prefix_add(Name **, char *);
  89. extern char *save_string(char *);
  90. extern void reverse_lists(Name *);
  91. extern void search(void);
  92. extern void *arena_getmem(size_t);
  93. extern void arena_free(void);
  94. #ifdef _AMIGA
  95. extern void CloseSystemResources(void);
  96. #endif
  97. #ifdef _AMIGA
  98. extern void catch_break(int);
  99. #endif
  100.  
  101.